package pers.amos.dubbo.demo.adaptive;

import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.common.extension.ExtensionLoader;
import com.alibaba.dubbo.rpc.Protocol;

/**
 * @author amos wong
 * @create 2020-12-08 4:02 下午
 */

public class AdaptiveDemo {

    public static void main(String[] args) {
        Protocol protocol = ExtensionLoader.getExtensionLoader(Protocol.class).getAdaptiveExtension();
        protocol.refer(Protocol.class, new URL("mock", "127.0.0.1", 1001));
    }
}
